<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/Money/searchfirst.css">
<link rel="stylesheet" href="statics/css/secondarytitle.css">
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layui-bg-cyan">
            <span>厂商开票</span>
            <div class="titleright">
                <button class="layui-btn layui-btn-sm" style="margin-right:1em;" lay-filter="BillingStatistics"
                        lay-dropdown="{showBy: 'hover',align:'left', menus: [
                        {txt: '供应商开票统计', event:'s1'},
                        {txt: '客户开票统计', event:'s2'},
                        {txt: '采购开票统计', event:'s3'},
                        ]}">
                    <span>统计</span>
                    <i class="layui-icon layui-icon-triangle-d"></i>
                </button>
            </div>
        </div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-tab layui-tab-card">
                        <form class="layui-form layui-from-pane" action="" id="editor-form" lay-filter="editor-form">
                            <div class="layui-inline">
                                <label class="layui-form-label">单据类型</label>
                                <div class="layui-input-inline">
                                    <select name="status">
                                        <option value=""></option>
                                        <option value="1">登记箱</option>
                                        <option value="2">完成箱</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">单据信息</label>
                                <div class="layui-input-inline">
                                    <input class="text layui-input" type="text"  name="billInformation" autocomplete="off" placeholder="">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">所属操作员</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="operationCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">部门操作员</label>
                                <div class="layui-input-inline" style="width: 200px">
                                    <div id="deptOperationCode" class="xm-select-demo"></div>
                                </div>
                            </div>
                            <div class="layui-inline daterange">
                                <label class="layui-form-label">发票收到日期</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input starttime" name="startBillingDate" placeholder="年 - 月 - 日">&nbsp;至&nbsp;<input type="text" class="layui-input starttime" name="endBillingDate" placeholder="年 - 月 - 日">
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">开票抬头</label>
                                <div class="layui-input-inline">
                                    <select name="billingTowerHeadCode" lay-search id="billingTowerHeadCode">
                                        <option value=""></option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline daterange">
                                <label class="layui-form-label">创建日期</label>
                                <div class="layui-input-inline">
                                    <input type="text" class="layui-input starttime" id="startCreateDate" name="startCreateDate" placeholder="年 - 月 - 日" value="${param.startCreateDate}">&nbsp;至&nbsp;<input id="endCreateDate" type="text" class="layui-input starttime" name="endCreateDate" placeholder="年 - 月 - 日" value="${param.endCreateDate}">
                                </div>
                            </div>
                            <button class="layui-btn layui-btn-sm layui-btn-submit" lay-submit="" lay-filter="submitform" style="margin-left: 10px">搜索</button>
                            <button type="reset" class="layui-btn layui-btn-sm layui-btn-submit" id="clear">重置</button>
                        </form>
                        <table class="layui-table" id="makeoutaninvoiceselect" lay-filter="makeoutaninvoicetable"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="makeoutaninvoicetoolbar">
    <a class="layui-btn layui-btn-sm layui-btn-normal" id="new" style="margin-left: 10px" lay-event="news">供应商票</a>
    <a class="layui-btn layui-btn-sm layui-btn-normal" id="new" style="margin-left: 10px" lay-event="newsCustomer">客户票</a>
    <a class="layui-btn layui-btn-sm layui-btn-danger" id="del" style="margin-left: 10px" lay-event="dels">删除</a>
    <a class="layui-btn layui-btn-sm layui-btn-danger" id="dayin" style="margin-left: 10px" lay-event="dayin">打印</a>
</script>

<script type="text/html" id="makeoutaninvoiceeditor">


    {{# if(d.status=='1'){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="delete">删除</a>
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="update">修改</a>
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="complete">完成</a>
    {{# } }}

    {{# if(d.status=='2'){ }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="back">退回</a>
    {{# } }}

</script>
<%@ include file="../tpl/foot.jsp"%>
<script src="statics/modules/xm-select.js"></script>
<script src="statics/js/Money/makeoutaninvoice.js"></script>